package com.xlh.exception;


import com.xlh.common.ResultEnum;

import java.util.List;

/**
 * @author cheer
 */
public class ClassUserException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private ResultEnum resultEnum;

    private List<String> data;

    public ClassUserException(ResultEnum resultEnum, List<String> data) {
        super(resultEnum.toString());
        this.resultEnum = resultEnum;
        this.data = data;
    }

    public ResultEnum getResultEnum() {
        return resultEnum;
    }

    public List<String> getData() {
        return data;
    }
}
